From 9b9c64266be4dde043979b390d16b6eb964312df Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Sat, 10 Mar 2007 21:41:58 +0000 Subject: [PATCH] Fix VM.set_actions_after_{reboot,shutdown}. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendAPI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py index c89f5467d0..d229d57df4 100644 --- a/tools/python/xen/xend/XendAPI.py +++ b/tools/python/xen/xend/XendAPI.py @@ -1284,12 +1284,12 @@ class XendAPI(object): return xen_api_todo() def VM_set_actions_after_shutdown(self, session, vm_ref, action): - if action not in XEN_API_ON_NORMAL_EXIST: + if action not in XEN_API_ON_NORMAL_EXIT: return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref]) return self.VM_set('actions_after_shutdown', session, vm_ref, action) def VM_set_actions_after_reboot(self, session, vm_ref, action): - if action not in XEN_API_ON_NORMAL_EXIST: + if action not in XEN_API_ON_NORMAL_EXIT: return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref]) return self.VM_set('actions_after_reboot', session, vm_ref, action) -- 2.30.2